package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 下载管理对象 artist_download_log
 * 
 * @author Yaphets
 * @date 2024-07-06
 */
public class ArtistDownloadLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 艺人主键 */
    private Long artistId;

    /** 艺人名称 */
    @Excel(name = "艺人名称")
    private String artistName;

    /** 下载人ID */
    private Long userId;

    /** 下载人昵称 */
    @Excel(name = "下载人昵称")
    private String userName;

    /** 下载时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下载时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date downloadTime;

    /** 下载类型    0:视频   1:附件 */
    @Excel(name = "下载类型    0:视频   1:附件")
    private Integer downloadType;

    /** 文件标识:oss地址或id */
    @Excel(name = "文件标识:oss地址或id")
    private String fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArtistId(Long artistId) 
    {
        this.artistId = artistId;
    }

    public Long getArtistId() 
    {
        return artistId;
    }
    public void setArtistName(String artistName) 
    {
        this.artistName = artistName;
    }

    public String getArtistName() 
    {
        return artistName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setDownloadTime(Date downloadTime) 
    {
        this.downloadTime = downloadTime;
    }

    public Date getDownloadTime() 
    {
        return downloadTime;
    }
    public void setDownloadType(Integer downloadType) 
    {
        this.downloadType = downloadType;
    }

    public Integer getDownloadType() 
    {
        return downloadType;
    }
    public void setFileId(String fileId) 
    {
        this.fileId = fileId;
    }

    public String getFileId() 
    {
        return fileId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("artistId", getArtistId())
            .append("artistName", getArtistName())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("downloadTime", getDownloadTime())
            .append("downloadType", getDownloadType())
            .append("fileId", getFileId())
            .append("fileName", getFileName())
            .toString();
    }
}
